
<!DOCTYPE html>
<html>
<head>
    <title>XXXX投票系统</title>
    <meta charset="utf-8" />
</head>

<style>
    *{
        margin:0;
    }
    a{

        list-style:none;
        }
    div{
        width: 800px;
        height:800px;
        margin:0 auto;
        margin-top:100px;
    }
    .tables1{
        border: 1px solid black;
        width: 800px;
        margin-top:30px;
    }
    td{
        border: 1px solid black;
        height:30px;
    }
    tr{
        border: 1px solid black;
    }
    .number{
        width:120px;
    }

</style>
<body>
    <div>
        <h2>XXXX投票系统</h2>
        <table class="tables1">
            <tr>
                <td class="number">序号</td>
                <td class="title">问题列表</td>
            </tr>
            {% for q in q_list %}
            <tr>
                <td class="number"><a href="#">{{q.id}}</a></td>
                <td class="title"><a href="quesPage?q_id={{q.id}}">{{q.question_text}}</a></td>
            </tr>
            {% endfor %}
        </table>
    </div>
</body>
</html>